<!--#include("header.html")-->
<!--%import("filter/insert_config.xml")-->

<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
    <table cellspacing="0" class="rowTable">
    <tr class="row2">
        <th scope="row"><div>{$lang->sample_code}<div></th>
        <td colspan="2" class="wide">
            <textarea class="inputTypeTextArea fullWidth" readonly="readonly">{$sample_code}</textarea>
            <p>{$lang->about_sample_code}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->skin}</div></th>
        <td colspan="2">
            <select name="skin">
                <!--@foreach($skin_list as $key=>$val)-->
                <option value="{$key}" <!--@if($config->skin==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
                <!--@end-->
            </select>
            <p>{$lang->about_skin}</p>
        </td>
    </tr>
    <tr class="row2">
        <td colspan="3"><input type="checkbox" onclick="XE.checkboxToggleAll('target_mid'); return false;" /> {$lang->about_target_module}</td>
    </tr>
    <!--@foreach($mid_list as $module_category_srl => $modules)-->
    <!--@if($modules->title)-->
    <tr>
        <th rowspan="{count($modules->list)+1}"><div>{$modules->title}</div></th>
        <!--@if(count($modules->list)<1)--><td colspan="2">&nbsp;</td><!--@end-->
    </tr>
    <!--@else-->
    <tr>
        <th rowspan="{count($modules->list)+1}"><div>&nbsp;</div></th>
        <!--@if(count($modules->list)<1)--><td colspan="2">&nbsp;</td><!--@end-->
    </tr>
    <!--@end-->
    <!--@foreach($modules->list as $key => $val)-->
    <tr class="row{$cycle_idx}">
        <td>{$val->module}</td>
        <td>
            <input type="checkbox" name="target_mid" value="{$key}" id="target_mid_{$key}" <!--@if(in_array($key,$config->target_mid))-->checked="checked"<!--@end--> />
            <label for="target_mid_{$key}">{$val->browser_title} ({$val->mid})</label>
        </td>
    </tr>
    <!--@end-->
    <!--@end-->
    <tr class="row2">
        <th class="button" colspan="3">
            <span class="button black strong"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
        </th>
    </tr>
    </table>
</form>
